import { getI18n } from "./index"

const language = {
  target: "cn" as const,
  cn: {
    upload: {
      introduction: "拖放图片到这里，生成链接",
      tip1: "点击这里",
      tip2: "浏览您的计算机",
      allow1: "允许的格式: JPG PNG BMP GIF WEBP",
      allow2: "最大为 6 MB",
      warn1: "上传",
      warn2: "诈骗·色情",
      warn3: "内容将提交",
      warn4: "网信办",
      warn5: "处理"
    },
    nav: {
      about: "关于",
      feedback: "反馈",
      mine: "已上传"
    },
    foot: {
      imgs: "本站已托管 $1 张图",
      time: "本站已稳定运行 ",
    },
    list: {
      btn: "上传"
    },
    detail: {
      edit: "编辑",
      title: "标题",
      wh: "图片宽高",
      size: "图片大小",
      clear: "清除时间(*d*h*m*s)",
      clearTip: "如: 20s代表20秒,* 代表永久保存",
      description: "描述",
      contentTip: "可以给图片添加一些详细信息, 一百字以内"
    },
    about: {
      title: "关于本站",
      link: "其它项目参考链接:",
      description1: "本网站用于上传图片文件，生成便捷网络链接，并存储于服务器上",
      description2: "前端采用 Vite + Vue3 + Pinia + Vue-router + TS",
      description3: "后端采用 Express + TS",
      description4: "网站许可证采用 木兰宽松许可证，仓库开源但不可私自部署用于商业行为，属侵权行为，望周知。",
      web1: "旅游网",
      web2: "TS笔记",
      web3: "软猫官网"
    },
    feedback: {
      title: "反馈",
      one1: "1、到",
      one2: "仓库",
      one3: "提交 issue",
      two: "2、添加作者微信咨询"
    },
    mine: {
      tip: "提示",
      show1: "1、只根据机器 ip 进行区分, 所以如果上传的机器不是相同的机器, 查看不到对应图片",
      show2: "2、每个人上传的图片只有五十张, 如果需要更大空间请加站长说明",
    },
    showImg: {
      copy: "复制",
      delete: "删除",
      expireTxt: "过期时间 : $1"
    }
  },
  en: {
    upload: {
      introduction: "Drag and drop pictures here to generate links",
      tip1: "click here",
      tip2: "browse your computer",
      allow1: "Allowed formats: JPG PNG BMP GIF WEBP",
      allow2: "Maximum 6 MB",
      warn1: "Upload",
      warn2: "scam·porn",
      warn3: "content will be submitted",
      warn4: "Network Information Office",
      warn5: "processing"
    },
    nav: {
      about: "About",
      feedback: "Feedback",
      mine: "Uploaded"
    },
    foot: {
      imgs: "This site has hosted $1 images",
      time: "This site is running stably ",
    },
    list: {
      btn: "Upload"
    },
    detail: {
      edit: "Edit",
      title: "Title",
      wh: "Image width & height",
      size: "Image size",
      clear: "Clear time*d*h*m*s)",
      clearTip: "For example: 20s means 20 seconds,* means save forever",
      description: "Description",
      contentTip: "You can add some detailed information to the picture, within 100 words"
    },
    about: {
      title: "About this site",
      link: "Other project links:",
      description1: "This website is used to upload image files, generate convenient network links, and store them on the server",
      description2: "The front end uses Vite + Vue3 + Pinia + Vue-router + TS",
      description3: "Backend uses Express + TS",
      description4: "The website license adopts the Mulan permissive license. The warehouse is open source but cannot be deployed privately for commercial purposes. It is an infringement. Please know.",
      web1: "Tourist Site",
      web2: "TS-Note",
      web3: "Rmao Site"
    },
    feedback: {
      title: "Feedback",
      one1: "1、To",
      one2: "repository",
      one3: "submit issue",
      two: "2、Add author WeChat consultation"
    },
    mine: {
      tip: "Tip",
      show1: "1. It is only distinguished according to the machine ip, so if the uploaded machine is not the same machine, the corresponding picture cannot be viewed",
      show2: "2. There are only 50 pictures uploaded by each person. If you need more space, please add the webmaster's explanation",
    },
    showImg: {
      copy: "copy",
      delete: "delete",
      expireTxt: "expired time : $1"
    }
  }
}

export type Lanuage = typeof language.cn


const i18nPlugin = getI18n<Lanuage>(language)
export default i18nPlugin
